<template>
    <el-container>
      <el-main class="selectMain">
        <el-row class="description">
          <el-col :span="3" class="desc_item">课程编号</el-col>
          <el-col :span="4" class="desc_item">课程名</el-col>
          <el-col :span="2" class="desc_item">学分</el-col>
          <el-col :span="3" class="desc_item">学院</el-col>
          <el-col :span="3" class="desc_item">教师名</el-col>
          <el-col :span="3" class="desc_item">地点</el-col>
          <el-col :span="3" class="desc_item">课程时间</el-col>
          <el-col :span="3" class="desc_item">操作</el-col>
        </el-row>
        <class-item v-for="it in classArray" :key="it" :class-item="it" @chooseCls="chooseClass"></class-item>
      </el-main>
    </el-container>
</template>

<script lang="ts">
import classItem from '@/components/studentPage/chooseClass/chooseCenter/classItem.vue'
export default {
  name: 'chooseCenter',
  components: {
    classItem
  },
  props: {
    classArray: Object
  },
  emits: ['classChoose'],
  setup (props: any, context: any) {
    function chooseClass (cno: string, tno: string) {
      context.emit('classChoose', cno, tno)
    }
    return { chooseClass }
  }
}
</script>

<style lang="scss" scoped>
@import "../../../assets/Fonts/FontMap/FontMap";
@import "../../../assets/Fonts/FontMap/FontList.css";
.selectMain{
  padding: 0;
}
.description{
  width: 100%;
  height: 30px;
  background-color: #409EFF;
  border-top: 1px solid #DCDFE6;
  .desc_item{
    font-family: $Mi_Lan;
    height: 100%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #DCDFE6;
    font-weight: bold;
    font-size: 16px;
  }
}
</style>
